{if $need_header_footer}
{template common/header}
{template misc/js_sharebutton}
<div class="container" id="nav-cat-outer">
	{template pin/navmenu}
</div>
{/if}
<div id="waterfall_outer" data-fullscreen="$pinsetting['uipin_auto']" class="container">
	<div class="span12 ml0" id="waterfall" data-pin-width="$pinsetting['uipin_columnwidth']" data-animated="$pinsetting['uipin_animated']">
		{if $guide['show']}
		{template pin/tags}
		{/if}
		$tpl_waterfall
	</div>
</div>

<div class="container">
	<div id="loadingPins" class="span12 text_c"><img src="{baseurl}themes/$theme/img/puzzle32.gif"></div>
</div>
<div id="page-nav" class="mt20 container hide">
	<a id="page-next" href="$nextpage_url"></a>
</div>
<div id="wpage-nav" class="hide text_c mt20">
	$wpages
</div>
<div class="hide">
	$pages
</div>
{if $need_header_footer}
{template js_tpl/comment_waterfall_tpl}
{template common/footer}
{/if}